// Name: Jon Wesel
// Course: SSW 567
// Assignment: 1

public class TriangleIdentifier {
	public static void main(String[] args) {	
		if(args.length != 3){
			System.out.println("TriangleIdentifier requires 3 arguments. \n" + 
								"Usage: TriangleIndentifier <a> <b> <c>");
			return;
		}
		
		try{
			
			double a = Double.parseDouble(args[0]);
			double b = Double.parseDouble(args[1]); 
			double c = Double.parseDouble(args[2]);
			  
			if((a > 1000000)|| (b > 1000000)|| (c > 1000000) ||
			   (a < 0)|| (b < 0)|| (c < 0))
			{
				System.out.println("Input values must be greater than 0 and " +
								   "less than or equal to 1,000,000.\n");
			}
			else
			{
				Triangle t = new Triangle(a, b, c);
			
				System.out.println(t.getDescription());
			}
		}catch(NumberFormatException e){
			System.out.println("Invalid arguments. Expecting 3 numbers.\n" +
					"Usage: TriangleIndentifier <a> <b> <c>");
		}
	}
}
